package com.heping.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heping.entity.Product;
import com.heping.mapper.ProductMapper;
import com.heping.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {

    @Resource
    private ProductMapper productMapper;

    @Override
    public IPage<Product> queryForPage(IPage<Product> pageParam, Product product) {
        return productMapper.queryForPage(pageParam, product);
    }
}
